package com.dk.service;

import com.dk.VO.TbOrderVO;
import com.dk.bo.AlipayOrderBO;
import com.dk.pojo.TbOrder;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface TbOrderService {

    List<TbOrderVO> getOrdersByUserId(Long userId);

    List<TbOrderVO> getSoldCars(Long userId);

    TbOrder selectOrderBy(String out_trade_no);

    void updateTradeNoAndPaymentTimeByOrderNum(String out_trade_no, String trade_no);

    void updateStatusByOrderNum(String refundOrderNum, String s);

    void updateStatusByTradeNo(String trade_no, String s);

    AlipayOrderBO createOrder(Long userid, String phone, Long cid, Long num);
}
